﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Yipusoft.Chemical.BLL;
using Yipusoft.Chemical.Model;

public partial class BasicBase_Chemical_ChemicalView : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        #region 权限
        bool isPermission = false;
        if (Yipusoft.Account.BLL.User.HasPermission(User.Identity.Name, "201600"))
        {
            isPermission = true;
        }
        else
        {

            if (Yipusoft.Account.BLL.User.HasPermission(User.Identity.Name, "201606"))
            {
                isPermission = true;
            }

        }
        if (!isPermission)
        {
            Response.Write("<script>alert('没有权限！');window.close();</script>");
            return;
        }
        #endregion
        ChemicalInfo info = Chemical.getChemicalByID(new Guid(Request.QueryString["ID"]));
        ChemicalClass.Text = info.ChemicalClass;
        CnName.Text = info.CnName;
        EnName.Text = info.EnName;
        OtName.Text = info.OtName;
        ReferenceChemical.Text = info.ReferenceChemical;
        ReferenceScheme.Text = info.ReferenceScheme;
        LC50.Text = info.LC50;
        LD50.Text = info.LD50;
        Smell.Text = info.Smell;
        Color.Text = info.Color;
        Status.Text = info.Status;
        Danger.Text = info.Danger;
        Resolvent.Text = info.Resolvent;
        Package.Text = info.Package;
        Avoid.Text = info.Avoid;
        Skin.Text = info.Skin;
        Eye.Text = info.Eye;
        RespiratoryTract.Text = info.RespiratoryTract;
        Stifle.Text = info.Stifle;
        Nervous.Text = info.Nervous;
        RespiratorySystem.Text = info.RespiratorySystem;
        DigestiveSystem.Text = info.DigestiveSystem;
        CirculatorySystem.Text = info.CirculatorySystem;
    }
}
